package com.szjz.freequery.configuration;

import com.szjz.freequery.enums.LogLevelModelEnum;
import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * author:szjz
 * date:2019/11/14
 */

@Validated
@ConfigurationProperties(prefix = "fq")
public class FQProperties {

    @Getter
    private Log log = new Log();

    @Data
    public class Log{

        //默认为debug模式
        private LogLevelModelEnum level = LogLevelModelEnum.debug;

    }

}
